/**
 * 机架信息管理 api
 * @type {BaseFrameInfoApi}
 */
const baseFrameInfoApi = new class BaseFrameInfoApi extends BaseApi {
    constructor() {
        super({
            url: '/api/baseFrameInfo',
            exp: true,
            imp: true,
        })
    }

    listByHouseId = rx.onceOfSameParam(async (houseId) => {
        return (await rxajax.get(`/api/baseIdcHouseArea/list/houseId/${houseId}`)).data.data
    }, 'baseFrameInfoApi.listByHouseId')

    async selectFrameNumberByAreaId(areaId, frameNum) {
        return (await rxajax.get(this.using(`/area-id/${areaId}/frame-num/${frameNum}`))).data.data
    }

    async selectListAppendHouseName(idcId) {
        return (await rxajax.get(this.using(`/select-list-append-houseName/${idcId}`))).data.data
    }
}()
